<template>
  <div>
    <h1>Demo Test</h1>
    <button @click="onMessage">点击触发</button>
  </div>
</template>

<script>
export default {
  name: "Demo",
  methods: {
    onMessage() {
      this.$message({
        type: "error",
      });
    },
  },
};
</script>
